﻿@model PSTUTemplate.Models.Object.ViewModels.ExamDisplayModel
<script type="text/javascript">
    function printPartOfPage(admitcard) {
        debugger;
        var printContents = document.getElementById(admitcard).innerHTML;
        var originalContents = document.body.innerHTML;

        document.body.innerHTML = printContents;

        window.print();

        document.body.innerHTML = originalContents;
    }
</script>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<fieldset>
    <legend>Exam Entry Form</legend>
    <div class="main-title">
        পটুয়াখালী বিজ্ঞান ও প্রযুক্তি বিশ্ববিদ্যালয়<br />
        Patuakhali Science and Technology University<br />
        <img src="@Url.Content("~/Uploads/" + Model.Profiles.Avatar)"  alt="@Model.Profiles.Avatar"/  width="90"/>
    </div>
    <hr />
    <fieldset>
        <div class="content">
            <table width="100%">
                <tbody>
                    <tr>
                        <td>
                            Name : @Html.DisplayFor(model => model.Profiles.Name)
                        </td>
                        <td>
                            Registration No. : @Html.DisplayFor(model => model.Profiles.RegistrationNo)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Class Start Date : @Html.DisplayFor(model => model.Enrols.StudentEnrols.ClassStartDate)
                        </td>
                        <td>
                            Id No. : @Html.DisplayFor(model => model.Profiles.Roll)
                        </td>
                        <td>
                            Session : @Html.DisplayFor(model => model.Profiles.StartSession)
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
    <br />
    <div class="content">
        &nbsp I am a residential student of @Model.Profiles.HallName Hall.<br />
        &nbsp Hall border no. @Model.Profiles.HallBorderNo,&nbsp Room No. @Model.Profiles.RoomNo,&nbsp
        Mobile No. @Model.Profiles.Phone .
    </div>
    <br />
    @using (Html.BeginForm("Details", "Exam", FormMethod.Post,
        new { @encType = "multipart/form-data" }))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>ExamMarkSheet</legend>
            @{
        if (Model.MarkSheet.ImageAvatar != null)
        {  
            <div class="success">
            @Model.MarkSheet.ImageAvatar
            </div>
        }
        
            }
            <br /><br /><br /><br />
            <label for="file">
                Filename:</label>
            <input type="file" name="file" id="file" />
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    }
    <fieldset>
        <legend>Admit Card</legend>
        <input type="button" class="button medium green" onclick="printPartOfPage('admitcard')"
            value="Print" />
        <div id="admitcard">
            <div class="main-title">
                Patuakhali Science and Technology University<br />
                Dumki, Patuakhali-8602<br />
                <img src="@Url.Content("~/Uploads/" + Model.Profiles.Avatar)"  alt="@Model.Profiles.Avatar"/  width="90"/>
            </div>
            <div class="submain-title">
                ADMIT CARD</div>
            <div class="submain-title">
                8th Semester (Level-@Model.Profiles.Level,Semester-@Model.Profiles.Semester) Final
                Examination of B.Sc.Engg.(@Model.Profiles.Faculty)</div>
            <br />
            <div class="content">
                <table width="110%">
                    <tbody>
                        <tr>
                            <td>
                                Name : @Html.DisplayFor(model => model.Profiles.Name)
                            </td>
                            <td>
                                Registration No. : @Html.DisplayFor(model => model.Profiles.RegistrationNo)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Examination Roll No. : @Html.DisplayFor(model => model.Profiles.Roll)
                            </td>
                            <td>
                                Session : @Html.DisplayFor(model => model.Profiles.StartSession)
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </fieldset>
    <hr />
    <div class="main-title">
        Applicant's Detail
    </div>
    <div class="content">
        Name : @Html.DisplayFor(model => model.Profiles.Name)</div>
    <div class="content">
        Father;s Name : @Html.DisplayFor(model => model.Profiles.FathersName)
    </div>
    <div class="content">
        Mother's Name : @Html.DisplayFor(model => model.Profiles.MothersName)
    </div>
    <div class="content">
        Address : @Html.DisplayFor(model => model.Profiles.VillageRoadArea)
    </div>
    <div class="content">
        PostOffice : @Html.DisplayFor(model => model.Profiles.PostOffice)
    </div>
    <div class="content">
        Upazella : @Html.DisplayFor(model => model.Profiles.Thana)
    </div>
    <div class="content">
        District : @Html.DisplayFor(model => model.Profiles.District)
    </div>
    <div class="content">
        Nationality : @Html.DisplayFor(model => model.Profiles.Nationality)
    </div>
    <div class="content">
        Religion : @Html.DisplayFor(model => model.Profiles.Religion)
    </div>
    <div class="content">
        IsTribial : @Html.DisplayFor(model => model.Profiles.IsTribial)
    </div>
    <div class="content">
        Email : @Html.DisplayFor(model => model.Profiles.Email)
    </div>
    <hr />
    <div>
        Applicant has paid university's all claims and examination fees Amount(tk) : @Html.DisplayFor(model => model.Enrols.StudentEnrols.Amount)
        by bank receipt no. :@Html.DisplayFor(model => model.Enrols.StudentEnrols.BankReceiptNo)
        <br />
        in @Html.DisplayFor(model => model.Enrols.StudentEnrols.EnrolmentDate)
    </div>
</fieldset>
